package com.example.springbootsfzy.service.lishenao;

import com.example.springbootsfzy.domain.MemberPoints;
import com.example.springbootsfzy.mapper.MemberPointsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//积分会员表
@Service
public class Member_pointsService {
    @Autowired
    private MemberPointsMapper memberPointsMapper;
    //根据id查询积分
    public MemberPoints selectByPrimaryKey(Long pointId){
        return memberPointsMapper.selectByPrimaryKey(pointId);
    }
    //根据id修改积分
    public int updateByPrimaryKeySelective(MemberPoints memberPoints){
        return memberPointsMapper.updateByPrimaryKeySelective(memberPoints);
    }
    //根据id删除积分
    public int deleteByPrimaryKey(Long pointId){
        return memberPointsMapper.deleteByPrimaryKey(pointId);
    }
    //新增积分
    public int insert(MemberPoints memberPoints){
        return memberPointsMapper.insert(memberPoints);
    }

}
